package com.smmisia.article.entity.convetor;

import com.smmisia.article.dto.socket.GroupDTO;
import com.smmisia.article.entity.Group;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.factory.Mappers;

@Mapper(nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface GroupConvertor {

    GroupConvertor INSTANCE = Mappers.getMapper(GroupConvertor.class);

    /**
     * 实体转DTO
     * @param group
     * @return
     */
    GroupDTO toGroupDTO(Group group);


}
